package org.example.psn.core.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.example.system.common.bean.BaseEntity;

/**
 * <p>
 * 用户与菜单关系表 
 * </p>
 *
 * @author Joey
 * @since 2021-05-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="RelPersonMenu对象", description="用户与菜单关系表 ")
public class RelPersonMenu extends BaseEntity {

    private static final long serialVersionUID=1L;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "用户id")
    @TableField("psnId")
    private Long psnId;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "菜单id")
    @TableField("menuId")
    private Long menuId;




}
